#include <QTabWidget>
#include <QLabel>

#include "stocksetting.h"

StockSetting::StockSetting(QTabWidget *parent) :
    QTabWidget(parent)
{
    setWindowFlags(Qt::SplashScreen);
    initSettingWindow();
}

void StockSetting::initSettingWindow()
{
    firstTabPage();
    secondTabPage();
}

void StockSetting::firstTabPage()
{
    QLabel *la1 = new QLabel;
    la1->setStyleSheet("background-color:red");

    this->addTab(la1, "la1");
}

void StockSetting::secondTabPage()
{
    QLabel *la2 = new QLabel;
    la2->setStyleSheet("background-color:blue");

    this->addTab(la2, "la2");
}
